// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '单位管理',
        name: 'unitmodel',
        url: "/unitmodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"UnitCode":"","UnitName":"","Sort":"","Status":"","UnitDesc":""};
    const editFormOptions = [[{"title":"单位编号","required":true,"field":"UnitCode"}],
                              [{"title":"单位名称","required":true,"field":"UnitName"}],
                              [{"title":"排序","field":"Sort","type":"number"},
                               {"dataKey":"出入库状态","data":[],"title":"状态","required":true,"field":"Status","type":"select"}],
                              [{"title":"单位描述","required":true,"field":"UnitDesc"}]];
    const searchFormFields = {"UnitCode":"","UnitName":""};
    const searchFormOptions = [[{"title":"单位编号","field":"UnitCode"},{"title":"单位名称","field":"UnitName"}]];
    const columns = [{field:'Id',title:'单位id',type:'bigint',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'UnitCode',title:'单位编号',type:'string',width:110,require:true,align:'left',sort:true},
                       {field:'UnitName',title:'单位名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Sort',title:'排序',type:'int',width:110,align:'left'},
                       {field:'Status',title:'状态',type:'sbyte',bind:{ key:'出入库状态',data:[]},width:110,require:true,align:'left'},
                       {field:'UnitDesc',title:'单位描述',type:'string',width:110,require:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDelete',title:'是否删除',type:'sbyte',width:110,require:true,align:'left'},
                       {field:'CreateID',title:'创建人ID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'ModifyID',title:'修改人ID',type:'int',width:100,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}